﻿<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="~/Assets/css/mui.css" rel="stylesheet" />
    <link href="~/Assets/css/icons-extra.css" rel="stylesheet" />
    <title>@ViewBag.Title</title>
    <script src="~/Assets/js/base/angular.js"></script>
    <script src="~/Assets/js/base/jquery.min.js"></script>
    <script src="~/Assets/js/mui.js"></script>
    <script src="~/Assets/js/base/jquery.cookie.js"></script>
    <script src="~/Assets/js/base/angular-cookie.js"></script>
    @RenderSection("css")
    <style>
        .title {
            margin: 20px 15px 10px;
            color: #6d6d72;
            font-size: 15px;
        }

        .oa-contact-cell.mui-table .mui-table-cell {
            padding: 11px 0;
            vertical-align: middle;
        }

        .oa-contact-cell {
            position: relative;
            margin: -11px 0;
        }

        .oa-contact-avatar {
            width: 75px;
        }

            .oa-contact-avatar img {
                border-radius: 50%;
            }

        .oa-contact-content {
            width: 100%;
        }

        .oa-contact-name {
            margin-right: 20px;
        }

        .oa-contact-name, oa-contact-position {
            float: left;
        }

        .mui-bar {
            background-color: rgb(43,87,150);
            color: white;
        }

            .mui-bar a {
                color: white;
            }

        .menutxt {
            font-size: 13px;
        }
    </style>
</head>
<body ng-app="WebApp" ng-cloak ng-controller="MainController">
    @RenderBody()
    <nav class="mui-bar mui-bar-tab" style="background-color: #f7f7f7;">
        <a class="mui-tab-item" href="../Home/MenuBar">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">主页</span>
        </a>
        <a class="mui-tab-item" href="../PlaceSafety/MMyPlaceList">
            <span class="mui-icon-extra mui-icon-extra-topic" style="position:relative;top:7px;font-size:18px;"></span>
            <span class="mui-tab-label" style="font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis;padding-top:4px;">我的检查</span>
        </a>
        <a class="mui-tab-item" href="../SafetyResponsibility/MMyResponsibility">
            <span class="mui-icon mui-icon-star"></span>
            <span class="mui-tab-label">我的责任</span>
        </a>
        <a class="mui-tab-item" href="../HiddenTrouble/MHiddenTroubleRectification">
            <span class="mui-icon mui-icon-flag"></span>
            <span class="mui-tab-label">我的整改</span>
        </a>
    </nav>
    <script src="~/Assets/js/libs/ng-file-upload-shim.min.js"></script>
    <script src="~/Assets/js/libs/ng-file-upload.min.js"></script>
    <script src="~/Assets/js/pg/app.js?v=@DateTime.Now.ToString("yyMMddHH")"></script>
    @RenderSection("js")
    <script>
        $("textarea").on("blur", function () {
            $("body").removeClass("mui-focusin")
        });
        $("input").on("blur", function () {
            $("body").removeClass("mui-focusin")
        });
        mui('body').on('tap', 'a', function () {
            if (this.href != "#" && this.href != null && this.href != "") {
                window.top.location.href = this.href;
            }
        });

        function GoPage(id) {
            mui.showLoading("正在跳转..", "div");
            $.post("../Account/MGetMenuRole", { "MenuId": id }, function (ret) {
                mui.hideLoading();
                if (ret.Code == 100) {
                    if (ret.Data == "") {
                        mui.toast("暂无权限访问该界面");
                    }
                    else {
                        if (ret.Data == "#") {
                            mui.toast("暂未开放");
                        }
                        else {
                            location.href = ret.Data;;
                        }
                        
                    }
                }
                else {
                    return false;
                }
            });
        }
        window.onload = function () {
            // 阻止双击放大
            var lastTouchEnd = 0;
            document.addEventListener('touchstart', function (event) {
                if (event.touches.length > 1) {
                    event.preventDefault();
                }
            });
            document.addEventListener('touchend', function (event) {
                var now = (new Date()).getTime();
                if (now - lastTouchEnd <= 300) {
                    event.preventDefault();
                }
                lastTouchEnd = now;
            }, false);

            // 阻止双指放大
            document.addEventListener('gesturestart', function (event) {
                event.preventDefault();
            });
        }


    </script>
</body>
</html>
